import Vue from 'vue'
import Router from 'vue-router'

import Home from '@/page/index.vue'
import Category from '@/page/category.vue'
import Views from '@/page/views.vue'
import Mine from '@/page/mine.vue'
import TodayRecommend from "../page/todayRecommend.vue"
import Comment from "../page/comment"
import BannerDetails from "../page/bannerDetails"
import HotBang from "../page/hotbang.vue"

//引入个人中心的子路由
import Malejob from "../page/subpage/malejob.vue"
import Skills from "../page/subpage/skills.vue"
import Finance from "../page/subpage/finance.vue"
import Health from "../page/subpage/health.vue"

import Details from "../page/detailssubpage/details"
import Catalog from "../page/detailssubpage/catalog"
import Correlation from "../page/detailssubpage/correlation"

import MySubject from '../page/minesubpage/mysubject.vue'
import MyCollect from '../page/minesubpage/mycollect.vue'
import MyOrder from '../page/minesubpage/myorder.vue'
import MyRecord from '../page/minesubpage/myrecord.vue'

//引入个人中心列表路由
import Learn from '../page/minesubpage/minelist/learn.vue'
import Idea from '../page/minesubpage/minelist/idea.vue'
import MsgCenter from '../page/minesubpage/minelist/msgcenter.vue'
import MyDownload from '../page/minesubpage/minelist/msgcenter.vue'
import MySet from '../page/minesubpage/minelist/myset.vue'
import About from '../page/minesubpage/about.vue'

// 铭
import InputRouter from '@/page/input-router.vue'

import Development from '@/components/searchList/Development.vue'
import Education from '@/components/searchList/education.vue'
import Hot from '@/components/searchList/hot.vue'
import Income from '@/components/searchList/income.vue'
import Industry from '@/components/searchList/Industry.vue'

import SearchPage from '@/page/category_subpage/searchpage.vue'
import Labellist from '@/page/category_subpage/label-list.vue'

import Detailspage from '@/page/category_subpage/detailspage.vue'
import Purchasepage from '@/page/category_subpage/Purchasepage.vue'
import Logindata from '@/page/category_subpage/logindata.vue'
// 铭

Vue.use(Router)

export default new Router({
 linkActiveClass:'active',
 redirect:"/",
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      redirect:"/malejob",
      children:[
         {
          path:"malejob",
          component:Malejob
         },
         {
          path:"finance",
          component:Finance
         },
         {
          path:"skills",
          component:Skills
         },
         {
          path:"health",
          component:Health
         },
      ]
    },
    {
    	path:'/category',
    	name:'Category',
    	component:Category,
      redirect:"/category/industry",
        children:[
          {
            path:"development",
            component:Development
          },
          {
            path:"education",
            component:Education
          },
          {
            path:"hot",
            component:Hot
          },
          {
            path:"income",
            component:Income
          },
          {
            path:"industry",
            component:Industry
          }
        ]
      },
    {
    	path:'/view',
    	name:'Views',
    	component:Views
    },
    {
      path:'/hotbang',
      name:'HotBang',
      component:HotBang
    },
    {
      path:'/mine',
      name:'Mine',
      component:Mine,
    },
    {
      path:"/todayrecommend",
      name:'TodayRecommend',
      component:TodayRecommend
    }, 
    {
      path:"/comment",
      name:'Comment',
      component:Comment
    },
    {
      path:"/bannerdetails",
      name:'BannerDetails',
      component:BannerDetails,
      redirect:'/details',
      children:[
       {
        path:'/details',
        name:'Details',
        component:Details
       },
       {
        path:'/catalog',
        name:'Catalog',
        component:Catalog
       },
       {
        path:'/correlation',
        name:'Correlation',
        component:Correlation
       }
      ]
    },
    {
      path:'/mine/mysubject',
      name:'MySubject',
      component:MySubject
    },
    {
      path:'/mine/myorder',
      name:'MyOrder',
      component:MyOrder
    },
    {
      path:'/mine/mycollect',
      name:'MyCollect',
      component:MyCollect
    },
    {
      path:'/mine/myrecord',
      name:'MyRecord',
      component:MyRecord
    },
    {
      path:'/mine/learn',
      name:'Learn',
      component:Learn
    },
    {
      path:'/mine/idea',
      name:'Idea',
      component:Idea
    },
    {
      path:'/mine/mydownload',
      name:'MyDownload',
      component:MyDownload
    },
    {
      path:'/mine/msgcenter',
      name:'MsgCenter',
      component:MsgCenter
    },
    {
      path:'/mine/myset',
      name:'MySet',
      component:MySet
    },
    {
      path:'/searchpage',
      component:SearchPage
    },
    {
      path:'/labellist/:id',
      name:'Labellist',
      props:true,
      component:Labellist
    },
    {
      path:'/detailspage/:id/:haha',
      name:'detailspage',
      props:true,
      component:Detailspage
    },
     {
      path:'/purchasepage',
      name:'purchasepage',
      props:true,
      component:Purchasepage
    },
    {
      path:'/logindata',
      component:Logindata
    },
    {
      path:'/mine/myset/about',
      name:'About',
      component:About
    }
  ]
})
